package com.eling.elcms.travel.service;

import com.eling.elcms.core.service.IGenericManager;
import com.eling.elcms.core.webapp.controller.Msg;
import com.eling.elcms.questionnaire.model.QuestionAnswerSheet;
import com.eling.elcms.travel.model.Customer;
import com.eling.elcms.travel.model.CustomerVisitRecord;
import com.eling.elcms.visit.model.view.QuestionAnswerSheetView;

import java.util.List;

public interface ICustomerVisitRecordManager extends IGenericManager<CustomerVisitRecord, Long> {

	Msg saveAll(String type, Integer customerVersion, Customer customer, CustomerVisitRecord cvs,
			QuestionAnswerSheet questionAnswerSheet, QuestionAnswerSheetView questionAnswerSheetView);

	List<CustomerVisitRecord> queryAll(CustomerVisitRecord cond);

	List<CustomerVisitRecord> searchAll(CustomerVisitRecord cond, String str);
	
	Integer queryRemind(CustomerVisitRecord cvr, String type);

	Msg saveContract(Long pkTravelContract, CustomerVisitRecord cvr,
			QuestionAnswerSheet questionAnswerSheet,
			QuestionAnswerSheetView questionAnswerSheetView);

}
